package com.collect.senegal.zhiScene.zhiLogin.zhiFace;

import android.content.Context;

import com.collect.senegal.zhiBase.BaseContract;
import com.collect.senegal.zhiBean.zhiSend.ZHISFaceEntity;

public class ZHIFaceContract {
    interface View extends BaseContract.View {
        /**
         * 错误信息返回
         *
         * @type method
         * @author liwenjie
         * @creatTime 2019-11-14 17:54
         */
        void onGetErrorInfo(String methodName);

        /**
         * 上传图片返回
         *
         * @type method
         * @author liwenjie
         * @creatTime 2019-11-06 17:52
         */
        void onUploadImageInfo(String url);

        /**
         * 保存图片url返回
         *
         * @type method
         * @author liwenjie
         * @creatTime 2019-11-06 17:52
         */
        void onSaveFaceImageInfo();

    }

    interface Presenter extends BaseContract.Presenter<View> {
        /**
         * 上传图片
         *
         * @type method
         * @author liwenjie
         * @creatTime 2019-11-06 17:52
         */
        void uploadImageInfo(Context context, String filePath);

        /**
         * 保存图片url
         *
         * @type method
         * @author liwenjie
         * @creatTime 2019-11-06 17:52
         */
        void saveFaceImageInfo(Context context, ZHISFaceEntity zhisFaceEntity);
    }
}
